<style>
    #add{border-top: 1px solid #E0E0E0;text-align: center;}
    #add a{display: inline-block;padding: 10px 0;}
    
    #formorder{overflow: auto;}
    #formorder table{width: 100%;}
    #formorder table thead tr th,#formorder table tbody tr td{border: 1px solid #d3d2d2;}
    #formorder table thead tr th{
        padding: 5px;color: #666666;font-weight: 500;background: #f0f0f0;cursor: default;text-align: center;
    }
    #formorder table tbody tr td{padding: 5px;min-width: 100px;text-align: center;}
    #formorder table tbody tr td input.roomNum{border: 1px solid transparent;text-align: center;width: 40px;}
    #formorder table tbody tr td input[name="sub"],#formorder table tbody tr td input[name="reset_input"]{width: 80px;padding: 3px 5px;border: 1px solid #d3d2d2;color: #717171;margin: 5px;}
</style>

<section class="vbox">
    <section class="scrollable padder">
        <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
            <li><a href="#"><i class="fa fa-home"></i>酒店管理中心</a></li>
            <li><a href="#">酒店管理</a></li>
            <li><a href="#">可售房量</a></li>
        </ul>
        <div class="m-b-md">
            <h3 class="m-b-none"><span style="float:right;"></span>可售房量</h3>
        </div>
        <section class="panel panel-default">
            <header class="panel-heading">
                <i data-title="ajax to load the data." data-placement="bottom" data-toggle="tooltip" class="fa fa-info-sign text-muted" data-original-title="" title=""></i> 
                <b>可售房量</b><label style="color: red;font-size: 12px;font-weight: 500;">-----点击房间内容可修改房间数量</label>
            </header>
            <div id="formorder">
                <table>
                    <thead><tr><th>全部</th><th>房型</th><th>可售房量</th><th>操作</th></tr></thead>
                    <tbody>
                    <?
                    if($types){
                        ?><form action="<?=$this->url('hotel/roomEdit')?>" method="post" class="form-horizontal form-bordered form-validate" id="form_all_th"><?
                        foreach($types as $k=>$v){?>
                            <tr>
                                <td style="padding: 0;"><label style="display: block;width: 100%;height: 100%;margin-bottom: 0;padding: 5px;"><input type="checkbox" name="check_th_all[<?=$v['id']?>]" value="1" checked="" /></label></td>
                                <td><?=$v['title']?></td>
                                <td><input type="text" name="roomNum[<?=$v['id']?>]" class="roomNum" value="<?=$v['roomNum']?>" maxlength="4" />间</td>
                                <?if($k==0){?>
                                    <td rowspan="<?=count($types)?>"><input type="submit" name="sub" class="show_shadefrist" value="保存选择项" /><input type="reset" name="reset_input" value="重置" /></td>
                                <?}?>
                            </tr>
                        <?}
                        ?></form><?
                    }else{
                        echo "暂无数据";
                    }
                    ?>
                    </tbody>
                </table>
            </div>
        </section>
    </section>
</section>
<a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a>